//
//  CommonCellViewModel.h
//  quanminzhekou
//
//  Created by zxl on 15/1/16.
//  Copyright (c) 2015年 zhongqinglongtu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CommonCellModel.h"

typedef NS_ENUM(NSInteger, CommonCellViewModelGoodsSource) {
    CommonCellViewModelGoodsFromTmall,
    CommonCellViewModelGoodsFromTaobao,
};

@interface CommonCellViewModel : NSObject <NSCoding>

@property (nonatomic, copy) NSString* goodsID;
@property (nonatomic, strong) NSURL* url;
@property (nonatomic, strong) NSURL* imgUrl;
@property (nonatomic, copy) NSString* titleStr;
@property (nonatomic, retain) NSMutableAttributedString* originalPriceStr;
@property (nonatomic, copy) NSString* priceStr;
@property (nonatomic, copy) NSString* discountStr;
@property (nonatomic, copy) NSString* numOfPeopleBuyStr;
@property (nonatomic, copy) NSString* goodsLableStr;
@property (nonatomic, assign) BOOL isNew;
@property (nonatomic, strong) NSDate* sTime;
@property (nonatomic, strong) NSDate* eTime;
@property (nonatomic, copy) NSString* shareUrl;
@property (nonatomic, assign) CommonCellViewModelGoodsSource goodsSource;

- (id)initWithCommonCellModel:(CommonCellModel*)model;
@end
